package com.rgbgame.editor;

import processing.core.PApplet;

/**
 * 
 */

class LineWidget extends UIDockWidget{

	/**
	 * 
	 */
	public LineWidget(PApplet pApplet, float w, float h, UIDock p){
		super(pApplet, w,h,"Lines",p);
		normalIcon = pApplet.loadImage("line.png");
		hoverIcon = normalIcon;
		selectedIcon = pApplet.loadImage("line.png");
		selectedIcon.filter(PApplet.INVERT);
	}

	public LineWidget(PApplet pApplet, UIDock p){
		this(pApplet, p.dockWidth,p.dockWidth,p);
	}

	public void onSelect(){
		rgbEditor.toolType = rgbEditor.TOOL_LINE;
		selectMe();
		mode = SELECTED;
		return;
	}
}